Class MUPortAdvMessage

All Implemented Interfaces:
LTV

public class MUPortAdvMessage extends MultiUserMessage
This is a port advertisement message from PT.
  • Field Details

  • Constructor Details

    • MUPortAdvMessage

      public MUPortAdvMessage()
      Creates a MUPortAdvMessage This function creates a port advertisement message for the MU protocol.
  • Method Details

    • addPortInfo

      public void addPortInfo(PortInfo pi)
      Adds a PortInfo element to this message.
      Parameters:
      pi - The port info element to add.
    • getMessage

      public static MUPortAdvMessage getMessage(EncodedBuffer buffer)
      A deserialization function that creates a new message from a PtmpBuffer object.
      Parameters:
      buffer - The PtmpBuffer to get from
      Returns:
      A new instance of a MUPortAdvMessage class get from the buffer
    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buffer)
      Serializes the message into a PtmpBuffer.
      Specified by:
      encodeTypeAndPayload in interface LTV
      Overrides:
      encodeTypeAndPayload in class LTVImpl
      Parameters:
      buffer - The PtmpBuffer to put the message into
    • toString

      public String toString()
      Converts this message into a string for debugging purposes
      Overrides:
      toString in class MultiUserMessage
      Returns:
      A string representation of this message